from tkinter import *

root=Tk()

s1=Scale(root,from_=0,to=42)
s1.pack()
s2=Scale(root,from_=0,to=200,orient=HORIZONTAL) #orient=HORIZONTAL是水平
s2.pack()

def show():
    print(s1.get(),s2.get())

Button(root,text="获取位置",command=show).pack()

mainloop()
